<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2019 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// [ 应用入口文件 ]
namespace think;

require __DIR__ . '/../vendor/autoload.php';

// 执行HTTP应用并响应
//$http = (new App())->http;

//指定 .env.x 的配置文件执行
//你可以把这个 index.php 放入 .gitignore 忽略版本控制,然后在两个目录下面运行同一套代码,其中一个是dev环境,另一个是test环境
//记得把 .env.dev / .env.test / .env.prod 也都放入 .gitignore 忽略版本控制
$http = (new App())->setEnvName('dev')->http;
//$http = (new App())->setEnvName('test')->http;
//$http = (new App())->setEnvName('prod')->http;

$response = $http->run();

$response->send();

$http->end($response);
